/**
 * @author EX-LIJINHUA001
 * @date 2013-3-5
 */
package im.device.config.recevier;

import im.device.config.MessageService;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import app.log.AppLog;

/**
 * 开机启动接收器
 * @author EX-LIJINHUA001
 * @date 2013-3-5
 */
public class BootBroadcastReceiver extends BroadcastReceiver {

	private static final String TAG = BootBroadcastReceiver.class.getSimpleName();
	
	/* (non-Javadoc)
	 * @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)
	 */
	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO Auto-generated method stub
		AppLog.d(TAG, "BootBroadcastReceiver.onReceive");
		if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())){
		    MessageService.startService(context);
		}
	}
}
